# New ports collection makefile for:	cs-wwwconf
# Date created:				2006-09-12
# Whom:					Yuan-Hsiang Liu <liuyh@cs.nctu.edu.tw>
#
# $Id: Makefile 147 2006-09-23 05:36:10Z gslin $
#

PORTNAME=	winconf
PORTVERSION=	1.0
CATEGORIES=	cs
MASTER_SITES=	# none 
DISTFILES=	# none

MAINTAINER=	ta@cs.NCTU.edu.tw
COMMENT=	Install WWW server configuration files

USE_APACHE?=	20
NO_BUILD=	yes

.if !exists(/etc/ssl/private/www.key)
IGNORE=         you need to put WWW private key into /etc/ssl/private first
.endif

do-install:
	${INSTALL_DATA} ${FILESDIR}/httpd.conf ${TARGETDIR}/${APACHEETCDIR}
	${INSTALL_DATA} ${FILESDIR}/ssl.conf ${TARGETDIR}/${APACHEETCDIR}
	${MKDIR} /etc/ssl/certs
	${INSTALL_DATA} ${FILESDIR}/www.crt /etc/ssl/certs

.include <bsd.port.mk>
